package com.ygqh.baby.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: sunshuo
 * @date: 2019/2/25 15:23
 */
public class SkuMatchInfo {

	private Long sortKey;

	private String sizeName;

	private List<Long> skuIds;

	private Long count;

	public SkuMatchInfo() {
		this(null, null);
	}

	public SkuMatchInfo(Long sortKey, String sizeName) {
		this.sortKey = sortKey;
		this.sizeName = sizeName;
		this.skuIds = new ArrayList<>();
		this.count = 0L;
	}

	public Long getSortKey() {
		return sortKey;
	}

	public void setSortKey(Long sortKey) {
		this.sortKey = sortKey;
	}

	public String getSizeName() {
		return sizeName;
	}

	public void setSizeName(String sizeName) {
		this.sizeName = sizeName;
	}

	public List<Long> getSkuIds() {
		return skuIds;
	}

	public void setSkuIds(List<Long> skuIds) {
		this.skuIds = skuIds;
	}

	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public SkuMatchInfo addSkuId(Long skuId) {
		this.skuIds.add(skuId);
		return this;
	}

	public SkuMatchInfo addCount() {
		this.count++;
		return this;
	}

	@Override
	public String toString() {
		return "SkuMatchInfo{" +
				"sizeName='" + sizeName + '\'' +
				", skuIds=" + skuIds +
				", count=" + count +
				'}';
	}
}
